'use strict'
let mongoose = require('mongoose')
let Schema = mongoose.Schema
let ObjectId = Schema.ObjectId

let MailSchema = new Schema({
	_id: Number,
	playerId: Number, //接收玩家id
	sendId: Number, //发送者的id, 0为系统
	title: String, //主题
	content: String, //邮件内容
	items: [], //邮件的物品
	money: Number, //钱
	gold: Number, //金币
	time: Number, //发送的时间
	read: Number, //0未读1已读
});
/**/
mongoose.model('Mail', MailSchema);